<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>lacewing.packetloaders.server</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="lacewing-module.html">Package&nbsp;lacewing</a> ::
        <a href="lacewing.packetloaders-module.html">Package&nbsp;packetloaders</a> ::
        Module&nbsp;server
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="lacewing.packetloaders.server-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="lacewing.packetloaders.server-module.html" onclick="show_private();">Module lacewing.packetloaders.server</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (c) 2011 Mathias Kaerlev.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># See LICENSE for details.</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">struct</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Struct</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lacewing=lacewing-module.html"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-0', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module lacewing.baseloader=lacewing.baseloader-module.html"><a title="lacewing.baseloader" class="py-name" href="#" onclick="return doclink('link-1', 'baseloader', 'link-1');">baseloader</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">_BaseLoader</tt><tt class="py-op">,</tt> <tt class="py-name">_EmptyLoader</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-2', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module lacewing.bitdict=lacewing.bitdict-module.html"><a title="lacewing.bitdict" class="py-name" href="#" onclick="return doclink('link-3', 'bitdict', 'link-3');">bitdict</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class lacewing.bitdict.BitDict=lacewing.bitdict.BitDict-class.html"><a title="lacewing.bitdict.BitDict" class="py-name" href="#" onclick="return doclink('link-4', 'BitDict', 'link-4');">BitDict</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-5', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Package lacewing.moo.packetloaders=lacewing.moo.packetloaders-module.html,Package lacewing.packetloaders=lacewing.packetloaders-module.html"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-6', 'packetloaders', 'link-6');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module lacewing.moo.packetloaders.common=lacewing.moo.packetloaders.common-module.html,Module lacewing.packetloaders.common=lacewing.packetloaders.common-module.html"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-7', 'common', 'link-7');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt id="link-8" class="py-name" targets="Variable lacewing.packetloaders.common.CONNECT=lacewing.packetloaders.common-module.html#CONNECT"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-8', 'CONNECT', 'link-8');">CONNECT</a></tt><tt class="py-op">,</tt> <tt id="link-9" class="py-name" targets="Variable lacewing.packetloaders.common.SET_NAME=lacewing.packetloaders.common-module.html#SET_NAME"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-9', 'SET_NAME', 'link-9');">SET_NAME</a></tt><tt class="py-op">,</tt> <tt id="link-10" class="py-name" targets="Variable lacewing.packetloaders.common.JOIN_CHANNEL=lacewing.packetloaders.common-module.html#JOIN_CHANNEL"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-10', 'JOIN_CHANNEL', 'link-10');">JOIN_CHANNEL</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line">    <tt id="link-11" class="py-name" targets="Variable lacewing.packetloaders.common.LEAVE_CHANNEL=lacewing.packetloaders.common-module.html#LEAVE_CHANNEL"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-11', 'LEAVE_CHANNEL', 'link-11');">LEAVE_CHANNEL</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Variable lacewing.packetloaders.common.CHANNEL_LIST=lacewing.packetloaders.common-module.html#CHANNEL_LIST"><a title="lacewing.packetloaders.common.CHANNEL_LIST" class="py-name" href="#" onclick="return doclink('link-12', 'CHANNEL_LIST', 'link-12');">CHANNEL_LIST</a></tt><tt class="py-op">)</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-13" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-13', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-14', 'packetloaders', 'link-6');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-15', 'common', 'link-7');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt class="py-name">_BinaryMessageMixin</tt><tt class="py-op">,</tt>  </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line">    <tt class="py-name">_ObjectMessageMixin</tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable lacewing.packetloaders.server.RESPONSE_DATA=lacewing.packetloaders.server-module.html#RESPONSE_DATA"><a title="lacewing.packetloaders.server.RESPONSE_DATA" class="py-name" href="#" onclick="return doclink('link-16', 'RESPONSE_DATA', 'link-16');">RESPONSE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BB'</tt><tt class="py-op">)</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable lacewing.packetloaders.server.NAME_DATA=lacewing.packetloaders.server-module.html#NAME_DATA"><a title="lacewing.packetloaders.server.NAME_DATA" class="py-name" href="#" onclick="return doclink('link-17', 'NAME_DATA', 'link-17');">NAME_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;B'</tt><tt class="py-op">)</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable lacewing.packetloaders.client.SUBCHANNEL_DATA=lacewing.packetloaders.client-module.html#SUBCHANNEL_DATA,Variable lacewing.packetloaders.server.SUBCHANNEL_DATA=lacewing.packetloaders.server-module.html#SUBCHANNEL_DATA"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-18', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;B'</tt><tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt id="link-19" class="py-name" targets="Variable lacewing.packetloaders.server.JOIN_CHANNEL_DATA=lacewing.packetloaders.server-module.html#JOIN_CHANNEL_DATA"><a title="lacewing.packetloaders.server.JOIN_CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-19', 'JOIN_CHANNEL_DATA', 'link-19');">JOIN_CHANNEL_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BB'</tt><tt class="py-op">)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt id="link-20" class="py-name" targets="Variable lacewing.packetloaders.server.CHANNEL_ID=lacewing.packetloaders.server-module.html#CHANNEL_ID"><a title="lacewing.packetloaders.server.CHANNEL_ID" class="py-name" href="#" onclick="return doclink('link-20', 'CHANNEL_ID', 'link-20');">CHANNEL_ID</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;H'</tt><tt class="py-op">)</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt id="link-21" class="py-name" targets="Variable lacewing.packetloaders.server.YOUR_ID=lacewing.packetloaders.server-module.html#YOUR_ID"><a title="lacewing.packetloaders.server.YOUR_ID" class="py-name" href="#" onclick="return doclink('link-21', 'YOUR_ID', 'link-21');">YOUR_ID</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;H'</tt><tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt id="link-22" class="py-name" targets="Variable lacewing.packetloaders.server.PEER_DATA=lacewing.packetloaders.server-module.html#PEER_DATA"><a title="lacewing.packetloaders.server.PEER_DATA" class="py-name" href="#" onclick="return doclink('link-22', 'PEER_DATA', 'link-22');">PEER_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HBB'</tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt id="link-23" class="py-name" targets="Variable lacewing.packetloaders.server.CHANNEL_LIST_DATA=lacewing.packetloaders.server-module.html#CHANNEL_LIST_DATA"><a title="lacewing.packetloaders.server.CHANNEL_LIST_DATA" class="py-name" href="#" onclick="return doclink('link-23', 'CHANNEL_LIST_DATA', 'link-23');">CHANNEL_LIST_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HB'</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt id="link-24" class="py-name" targets="Variable lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA=lacewing.packetloaders.client-module.html#CHANNEL_MESSAGE_DATA,Variable lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA=lacewing.packetloaders.server-module.html#CHANNEL_MESSAGE_DATA"><a title="lacewing.packetloaders.client.CHANNEL_MESSAGE_DATA
lacewing.packetloaders.server.CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-24', 'CHANNEL_MESSAGE_DATA', 'link-24');">CHANNEL_MESSAGE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BH'</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt id="link-25" class="py-name" targets="Variable lacewing.packetloaders.client.PEER_MESSAGE_DATA=lacewing.packetloaders.client-module.html#PEER_MESSAGE_DATA,Variable lacewing.packetloaders.server.PEER_MESSAGE_DATA=lacewing.packetloaders.server-module.html#PEER_MESSAGE_DATA"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-25', 'PEER_MESSAGE_DATA', 'link-25');">PEER_MESSAGE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BHH'</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt id="link-26" class="py-name" targets="Variable lacewing.packetloaders.server.SERVER_CHANNEL_MESSAGE_DATA=lacewing.packetloaders.server-module.html#SERVER_CHANNEL_MESSAGE_DATA"><a title="lacewing.packetloaders.server.SERVER_CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-26', 'SERVER_CHANNEL_MESSAGE_DATA', 'link-26');">SERVER_CHANNEL_MESSAGE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BH'</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-27" class="py-name" targets="Variable lacewing.packetloaders.server.NEW_PEER_DATA=lacewing.packetloaders.server-module.html#NEW_PEER_DATA"><a title="lacewing.packetloaders.server.NEW_PEER_DATA" class="py-name" href="#" onclick="return doclink('link-27', 'NEW_PEER_DATA', 'link-27');">NEW_PEER_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HHB'</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable lacewing.packetloaders.server.PEER_LEAVE_DATA=lacewing.packetloaders.server-module.html#PEER_LEAVE_DATA"><a title="lacewing.packetloaders.server.PEER_LEAVE_DATA" class="py-name" href="#" onclick="return doclink('link-28', 'PEER_LEAVE_DATA', 'link-28');">PEER_LEAVE_DATA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Struct</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HH'</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"> </tt>
<a name="ChannelPeer"></a><div id="ChannelPeer-def"><a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="ChannelPeer-toggle" onclick="return toggle('ChannelPeer');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ChannelPeer-class.html">ChannelPeer</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelPeer-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChannelPeer-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt id="link-29" class="py-name" targets="Variable lacewing.client.ClientChannel.id=lacewing.client.ClientChannel-class.html#id,Variable lacewing.client.Peer.id=lacewing.client.Peer-class.html#id,Variable lacewing.moo.client.Channel.id=lacewing.moo.client.Channel-class.html#id,Variable lacewing.moo.client.Player.id=lacewing.moo.client.Player-class.html#id,Variable lacewing.moo.protocol.MooProtocol.id=lacewing.moo.protocol.MooProtocol-class.html#id,Variable lacewing.moo.server.Channel.id=lacewing.moo.server.Channel-class.html#id,Variable lacewing.packetloaders.client.BinaryChannelMessage.id=lacewing.packetloaders.client.BinaryChannelMessage-class.html#id,Variable lacewing.packetloaders.client.BinaryPeerMessage.id=lacewing.packetloaders.client.BinaryPeerMessage-class.html#id,Variable lacewing.packetloaders.client.BinaryServerMessage.id=lacewing.packetloaders.client.BinaryServerMessage-class.html#id,Variable lacewing.packetloaders.client.ChannelMaster.id=lacewing.packetloaders.client.ChannelMaster-class.html#id,Variable lacewing.packetloaders.client.ObjectChannelMessage.id=lacewing.packetloaders.client.ObjectChannelMessage-class.html#id,Variable lacewing.packetloaders.client.ObjectPeerMessage.id=lacewing.packetloaders.client.ObjectPeerMessage-class.html#id,Variable lacewing.packetloaders.client.ObjectServerMessage.id=lacewing.packetloaders.client.ObjectServerMessage-class.html#id,Variable lacewing.packetloaders.client.Pong.id=lacewing.packetloaders.client.Pong-class.html#id,Variable lacewing.packetloaders.client.Request.id=lacewing.packetloaders.client.Request-class.html#id,Variable lacewing.packetloaders.client.UDPHello.id=lacewing.packetloaders.client.UDPHello-class.html#id,Variable lacewing.packetloaders.server.BinaryChannelMessage.id=lacewing.packetloaders.server.BinaryChannelMessage-class.html#id,Variable lacewing.packetloaders.server.BinaryPeerMessage.id=lacewing.packetloaders.server.BinaryPeerMessage-class.html#id,Variable lacewing.packetloaders.server.BinaryServerChannelMessage.id=lacewing.packetloaders.server.BinaryServerChannelMessage-class.html#id,Variable lacewing.packetloaders.server.BinaryServerMessage.id=lacewing.packetloaders.server.BinaryServerMessage-class.html#id,Variable lacewing.packetloaders.server.ChannelPeer.id=lacewing.packetloaders.server.ChannelPeer-class.html#id,Variable lacewing.packetloaders.server.ObjectChannelMessage.id=lacewing.packetloaders.server.ObjectChannelMessage-class.html#id,Variable lacewing.packetloaders.server.ObjectPeerMessage.id=lacewing.packetloaders.server.ObjectPeerMessage-class.html#id,Variable lacewing.packetloaders.server.ObjectServerChannelMessage.id=lacewing.packetloaders.server.ObjectServerChannelMessage-class.html#id,Variable lacewing.packetloaders.server.ObjectServerMessage.id=lacewing.packetloaders.server.ObjectServerMessage-class.html#id,Variable lacewing.packetloaders.server.Peer.id=lacewing.packetloaders.server.Peer-class.html#id,Variable lacewing.packetloaders.server.Ping.id=lacewing.packetloaders.server.Ping-class.html#id,Variable lacewing.packetloaders.server.Response.id=lacewing.packetloaders.server.Response-class.html#id,Variable lacewing.packetloaders.server.UDPWelcome.id=lacewing.packetloaders.server.UDPWelcome-class.html#id,Variable lacewing.protocol.BaseProtocol.id=lacewing.protocol.BaseProtocol-class.html#id,Variable lacewing.server.ServerChannel.id=lacewing.server.ServerChannel-class.html#id"><a title="lacewing.client.ClientChannel.id
lacewing.client.Peer.id
lacewing.moo.client.Channel.id
lacewing.moo.client.Player.id
lacewing.moo.protocol.MooProtocol.id
lacewing.moo.server.Channel.id
lacewing.packetloaders.client.BinaryChannelMessage.id
lacewing.packetloaders.client.BinaryPeerMessage.id
lacewing.packetloaders.client.BinaryServerMessage.id
lacewing.packetloaders.client.ChannelMaster.id
lacewing.packetloaders.client.ObjectChannelMessage.id
lacewing.packetloaders.client.ObjectPeerMessage.id
lacewing.packetloaders.client.ObjectServerMessage.id
lacewing.packetloaders.client.Pong.id
lacewing.packetloaders.client.Request.id
lacewing.packetloaders.client.UDPHello.id
lacewing.packetloaders.server.BinaryChannelMessage.id
lacewing.packetloaders.server.BinaryPeerMessage.id
lacewing.packetloaders.server.BinaryServerChannelMessage.id
lacewing.packetloaders.server.BinaryServerMessage.id
lacewing.packetloaders.server.ChannelPeer.id
lacewing.packetloaders.server.ObjectChannelMessage.id
lacewing.packetloaders.server.ObjectPeerMessage.id
lacewing.packetloaders.server.ObjectServerChannelMessage.id
lacewing.packetloaders.server.ObjectServerMessage.id
lacewing.packetloaders.server.Peer.id
lacewing.packetloaders.server.Ping.id
lacewing.packetloaders.server.Response.id
lacewing.packetloaders.server.UDPWelcome.id
lacewing.protocol.BaseProtocol.id
lacewing.server.ServerChannel.id" class="py-name" href="#" onclick="return doclink('link-29', 'id', 'link-29');">id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt id="link-30" class="py-name" targets="Method lacewing.moo.client.Player.isMaster()=lacewing.moo.client.Player-class.html#isMaster,Variable lacewing.packetloaders.server.ChannelPeer.isMaster=lacewing.packetloaders.server.ChannelPeer-class.html#isMaster,Variable lacewing.packetloaders.server.Peer.isMaster=lacewing.packetloaders.server.Peer-class.html#isMaster,Variable lacewing.packetloaders.server.Response.isMaster=lacewing.packetloaders.server.Response-class.html#isMaster"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-30', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt id="link-31" class="py-name" targets="Variable lacewing.client.ClientChannel.name=lacewing.client.ClientChannel-class.html#name,Variable lacewing.client.Peer.name=lacewing.client.Peer-class.html#name,Variable lacewing.moo.client.Channel.name=lacewing.moo.client.Channel-class.html#name,Variable lacewing.moo.client.Player.name=lacewing.moo.client.Player-class.html#name,Variable lacewing.moo.protocol.MooProtocol.name=lacewing.moo.protocol.MooProtocol-class.html#name,Variable lacewing.moo.server.Channel.name=lacewing.moo.server.Channel-class.html#name,Variable lacewing.packetloaders.client.Request.name=lacewing.packetloaders.client.Request-class.html#name,Variable lacewing.packetloaders.server.ChannelPeer.name=lacewing.packetloaders.server.ChannelPeer-class.html#name,Variable lacewing.packetloaders.server.Peer.name=lacewing.packetloaders.server.Peer-class.html#name,Variable lacewing.packetloaders.server.Response.name=lacewing.packetloaders.server.Response-class.html#name,Variable lacewing.protocol.BaseProtocol.name=lacewing.protocol.BaseProtocol-class.html#name,Variable lacewing.server.ServerChannel.name=lacewing.server.ServerChannel-class.html#name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-31', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">     </tt>
<a name="ChannelPeer.read"></a><div id="ChannelPeer.read-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="ChannelPeer.read-toggle" onclick="return toggle('ChannelPeer.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ChannelPeer-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelPeer.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelPeer.read-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="lacewing.client.ClientChannel.id
lacewing.client.Peer.id
lacewing.moo.client.Channel.id
lacewing.moo.client.Player.id
lacewing.moo.protocol.MooProtocol.id
lacewing.moo.server.Channel.id
lacewing.packetloaders.client.BinaryChannelMessage.id
lacewing.packetloaders.client.BinaryPeerMessage.id
lacewing.packetloaders.client.BinaryServerMessage.id
lacewing.packetloaders.client.ChannelMaster.id
lacewing.packetloaders.client.ObjectChannelMessage.id
lacewing.packetloaders.client.ObjectPeerMessage.id
lacewing.packetloaders.client.ObjectServerMessage.id
lacewing.packetloaders.client.Pong.id
lacewing.packetloaders.client.Request.id
lacewing.packetloaders.client.UDPHello.id
lacewing.packetloaders.server.BinaryChannelMessage.id
lacewing.packetloaders.server.BinaryPeerMessage.id
lacewing.packetloaders.server.BinaryServerChannelMessage.id
lacewing.packetloaders.server.BinaryServerMessage.id
lacewing.packetloaders.server.ChannelPeer.id
lacewing.packetloaders.server.ObjectChannelMessage.id
lacewing.packetloaders.server.ObjectPeerMessage.id
lacewing.packetloaders.server.ObjectServerChannelMessage.id
lacewing.packetloaders.server.ObjectServerMessage.id
lacewing.packetloaders.server.Peer.id
lacewing.packetloaders.server.Ping.id
lacewing.packetloaders.server.Response.id
lacewing.packetloaders.server.UDPWelcome.id
lacewing.protocol.BaseProtocol.id
lacewing.server.ServerChannel.id" class="py-name" href="#" onclick="return doclink('link-32', 'id', 'link-29');">id</a></tt><tt class="py-op">,</tt> <tt id="link-33" class="py-name" targets="Variable lacewing.bitdict.BitDict.flags=lacewing.bitdict.BitDict-class.html#flags,Variable lacewing.packetloaders.client.Request.flags=lacewing.packetloaders.client.Request-class.html#flags"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-33', 'flags', 'link-33');">flags</a></tt><tt class="py-op">,</tt> <tt id="link-34" class="py-name" targets="Method lacewing.bytereader.ByteReader.size()=lacewing.bytereader.ByteReader-class.html#size"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-34', 'size', 'link-34');">size</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="lacewing.packetloaders.server.PEER_DATA" class="py-name" href="#" onclick="return doclink('link-35', 'PEER_DATA', 'link-22');">PEER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-36" class="py-name" targets="Method lacewing.bytereader.ByteReader.data()=lacewing.bytereader.ByteReader-class.html#data"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-36', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-37', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt id="link-38" class="py-name"><a title="lacewing.bitdict.BitDict.flags
lacewing.packetloaders.client.Request.flags" class="py-name" href="#" onclick="return doclink('link-38', 'flags', 'link-33');">flags</a></tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-39', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-40" class="py-name" targets="Variable lacewing.bytereader.ByteReader.buffer=lacewing.bytereader.ByteReader-class.html#buffer"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-40', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-41" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-41', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-42" class="py-name"><a title="lacewing.packetloaders.server.PEER_DATA" class="py-name" href="#" onclick="return doclink('link-42', 'PEER_DATA', 'link-22');">PEER_DATA</a></tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-43', 'size', 'link-34');">size</a></tt><tt class="py-op">,</tt> <tt id="link-44" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-44', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-45" class="py-name"><a title="lacewing.packetloaders.server.PEER_DATA" class="py-name" href="#" onclick="return doclink('link-45', 'PEER_DATA', 'link-22');">PEER_DATA</a></tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-46', 'size', 'link-34');">size</a></tt> <tt class="py-op">+</tt> <tt id="link-47" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-47', 'size', 'link-34');">size</a></tt> </tt>
</div><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">     </tt>
<a name="ChannelPeer.generate"></a><div id="ChannelPeer.generate-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="ChannelPeer.generate-toggle" onclick="return toggle('ChannelPeer.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ChannelPeer-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChannelPeer.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChannelPeer.generate-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-48" class="py-name"><a title="lacewing.packetloaders.server.PEER_DATA" class="py-name" href="#" onclick="return doclink('link-48', 'PEER_DATA', 'link-22');">PEER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="lacewing.client.ClientChannel.id
lacewing.client.Peer.id
lacewing.moo.client.Channel.id
lacewing.moo.client.Player.id
lacewing.moo.protocol.MooProtocol.id
lacewing.moo.server.Channel.id
lacewing.packetloaders.client.BinaryChannelMessage.id
lacewing.packetloaders.client.BinaryPeerMessage.id
lacewing.packetloaders.client.BinaryServerMessage.id
lacewing.packetloaders.client.ChannelMaster.id
lacewing.packetloaders.client.ObjectChannelMessage.id
lacewing.packetloaders.client.ObjectPeerMessage.id
lacewing.packetloaders.client.ObjectServerMessage.id
lacewing.packetloaders.client.Pong.id
lacewing.packetloaders.client.Request.id
lacewing.packetloaders.client.UDPHello.id
lacewing.packetloaders.server.BinaryChannelMessage.id
lacewing.packetloaders.server.BinaryPeerMessage.id
lacewing.packetloaders.server.BinaryServerChannelMessage.id
lacewing.packetloaders.server.BinaryServerMessage.id
lacewing.packetloaders.server.ChannelPeer.id
lacewing.packetloaders.server.ObjectChannelMessage.id
lacewing.packetloaders.server.ObjectPeerMessage.id
lacewing.packetloaders.server.ObjectServerChannelMessage.id
lacewing.packetloaders.server.ObjectServerMessage.id
lacewing.packetloaders.server.Peer.id
lacewing.packetloaders.server.Ping.id
lacewing.packetloaders.server.Response.id
lacewing.packetloaders.server.UDPWelcome.id
lacewing.protocol.BaseProtocol.id
lacewing.server.ServerChannel.id" class="py-name" href="#" onclick="return doclink('link-49', 'id', 'link-29');">id</a></tt><tt class="py-op">,</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-50', 'isMaster', 'link-30');">isMaster</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">            <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-51', 'name', 'link-31');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-52', 'name', 'link-31');">name</a></tt> </tt>
</div></div><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"> </tt>
<a name="Response"></a><div id="Response-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <a class="py-toggle" href="#" id="Response-toggle" onclick="return toggle('Response');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Response-class.html">Response</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Response-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Response-expanded"><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt id="link-53" class="py-name" targets="Variable lacewing.packetloaders.server.Response.response=lacewing.packetloaders.server.Response-class.html#response"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-53', 'response', 'link-53');">response</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">    <tt id="link-54" class="py-name" targets="Variable lacewing.packetloaders.server.Response.success=lacewing.packetloaders.server.Response-class.html#success"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-54', 'success', 'link-54');">success</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">    <tt id="link-55" class="py-name" targets="Variable lacewing.packetloaders.server.Response.welcome=lacewing.packetloaders.server.Response-class.html#welcome"><a title="lacewing.packetloaders.server.Response.welcome" class="py-name" href="#" onclick="return doclink('link-55', 'welcome', 'link-55');">welcome</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt id="link-56" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-56', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt id="link-57" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-57', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">    <tt id="link-58" class="py-name" targets="Variable lacewing.moo.client.Player.channel=lacewing.moo.client.Player-class.html#channel,Variable lacewing.packetloaders.client.ChannelMaster.channel=lacewing.packetloaders.client.ChannelMaster-class.html#channel,Variable lacewing.packetloaders.client.Request.channel=lacewing.packetloaders.client.Request-class.html#channel,Variable lacewing.packetloaders.server.Peer.channel=lacewing.packetloaders.server.Peer-class.html#channel,Variable lacewing.packetloaders.server.Response.channel=lacewing.packetloaders.server.Response-class.html#channel"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-58', 'channel', 'link-58');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">    <tt id="link-59" class="py-name" targets="Variable lacewing.packetloaders.server.Response.peers=lacewing.packetloaders.server.Response-class.html#peers"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-59', 'peers', 'link-59');">peers</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt id="link-60" class="py-name" targets="Variable lacewing.moo.protocol.MooProtocol.channels=lacewing.moo.protocol.MooProtocol-class.html#channels,Variable lacewing.moo.server.MooServerFactory.channels=lacewing.moo.server.MooServerFactory-class.html#channels,Variable lacewing.packetloaders.server.Response.channels=lacewing.packetloaders.server.Response-class.html#channels,Variable lacewing.protocol.BaseProtocol.channels=lacewing.protocol.BaseProtocol-class.html#channels"><a title="lacewing.moo.protocol.MooProtocol.channels
lacewing.moo.server.MooServerFactory.channels
lacewing.packetloaders.server.Response.channels
lacewing.protocol.BaseProtocol.channels" class="py-name" href="#" onclick="return doclink('link-60', 'channels', 'link-60');">channels</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt id="link-61" class="py-name" targets="Variable lacewing.moo.packetloaders.client.PrivateMessage.playerId=lacewing.moo.packetloaders.client.PrivateMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.AssignedID.playerId=lacewing.moo.packetloaders.server.AssignedID-class.html#playerId,Variable lacewing.moo.packetloaders.server.ChannelJoined.playerId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerId,Variable lacewing.moo.packetloaders.server.FromChannelMessage.playerId=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerChanged.playerId=lacewing.moo.packetloaders.server.PlayerChanged-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerLeft.playerId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#playerId,Variable lacewing.packetloaders.server.Response.playerId=lacewing.packetloaders.server.Response-class.html#playerId"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-61', 'playerId', 'link-61');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt id="link-62" class="py-name" targets="Variable lacewing.moo.packetloaders.message.Message.value=lacewing.moo.packetloaders.message.Message-class.html#value,Variable lacewing.multidict.DictItem.value=lacewing.multidict.DictItem-class.html#value,Variable lacewing.packetloaders.server.Response.value=lacewing.packetloaders.server.Response-class.html#value"><a title="lacewing.moo.packetloaders.message.Message.value
lacewing.multidict.DictItem.value
lacewing.packetloaders.server.Response.value" class="py-name" href="#" onclick="return doclink('link-62', 'value', 'link-62');">value</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line"> </tt>
<a name="Response.read"></a><div id="Response.read-def"><a name="L54"></a><tt class="py-lineno"> 54</tt> <a class="py-toggle" href="#" id="Response.read-toggle" onclick="return toggle('Response.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Response-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Response.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Response.read-expanded"><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-63', 'response', 'link-53');">response</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-64', 'success', 'link-54');">success</a></tt> <tt class="py-op">=</tt> <tt id="link-65" class="py-name"><a title="lacewing.packetloaders.server.RESPONSE_DATA" class="py-name" href="#" onclick="return doclink('link-65', 'RESPONSE_DATA', 'link-16');">RESPONSE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-66', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt id="link-67" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-67', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-68" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-68', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-69" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-69', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-70', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-71" class="py-name"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-71', 'CONNECT', 'link-8');">CONNECT</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-72', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-73', 'playerId', 'link-61');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-74" class="py-name"><a title="lacewing.packetloaders.server.YOUR_ID" class="py-name" href="#" onclick="return doclink('link-74', 'YOUR_ID', 'link-21');">YOUR_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-75" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-75', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="lacewing.packetloaders.server.Response.welcome" class="py-name" href="#" onclick="return doclink('link-76', 'welcome', 'link-55');">welcome</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-77" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-77', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-78" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-78', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-79', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-80" class="py-name"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-80', 'SET_NAME', 'link-9');">SET_NAME</a></tt><tt class="py-op">:</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">            <tt id="link-81" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-81', 'size', 'link-34');">size</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-82" class="py-name"><a title="lacewing.packetloaders.server.NAME_DATA" class="py-name" href="#" onclick="return doclink('link-82', 'NAME_DATA', 'link-17');">NAME_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-83" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-83', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-84', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-85" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-85', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-86" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-86', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt> <tt id="link-87" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-87', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">            <tt id="link-88" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-88', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-89" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-89', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-90" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-90', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">1</tt> <tt class="py-op">+</tt> <tt id="link-91" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-91', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-92', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-93" class="py-name"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-93', 'JOIN_CHANNEL', 'link-10');">JOIN_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-94', 'isMaster', 'link-30');">isMaster</a></tt><tt class="py-op">,</tt> <tt id="link-95" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-95', 'size', 'link-34');">size</a></tt> <tt class="py-op">=</tt> <tt id="link-96" class="py-name"><a title="lacewing.packetloaders.server.JOIN_CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-96', 'JOIN_CHANNEL_DATA', 'link-19');">JOIN_CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-97" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-97', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-98', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-99" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-99', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-100" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-100', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-101" class="py-name"><a title="lacewing.packetloaders.server.JOIN_CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-101', 'JOIN_CHANNEL_DATA', 'link-19');">JOIN_CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt id="link-102" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-102', 'size', 'link-34');">size</a></tt><tt class="py-op">,</tt> <tt id="link-103" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-103', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">            <tt id="link-104" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-104', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-105" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-105', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-106" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-106', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-107" class="py-name"><a title="lacewing.packetloaders.server.JOIN_CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-107', 'JOIN_CHANNEL_DATA', 'link-19');">JOIN_CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt id="link-108" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-108', 'size', 'link-34');">size</a></tt> <tt class="py-op">+</tt> <tt id="link-109" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-109', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-110', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-111', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-112" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_ID" class="py-name" href="#" onclick="return doclink('link-112', 'CHANNEL_ID', 'link-20');">CHANNEL_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-113" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-113', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">                <tt id="link-114" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-114', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-115" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-115', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-116" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-116', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-117', 'peers', 'link-59');">peers</a></tt> <tt class="py-op">=</tt> <tt id="link-118" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-118', 'peers', 'link-59');">peers</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">                <tt class="py-keyword">while</tt> <tt id="link-119" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-119', 'data', 'link-36');">data</a></tt><tt class="py-op">:</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">                    <tt id="link-120" class="py-name" targets="Variable lacewing.packetloaders.client.ChannelMaster.peer=lacewing.packetloaders.client.ChannelMaster-class.html#peer,Variable lacewing.packetloaders.server.Peer.peer=lacewing.packetloaders.server.Peer-class.html#peer"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-120', 'peer', 'link-120');">peer</a></tt> <tt class="py-op">=</tt> <tt id="link-121" class="py-name" targets="Class lacewing.packetloaders.server.ChannelPeer=lacewing.packetloaders.server.ChannelPeer-class.html"><a title="lacewing.packetloaders.server.ChannelPeer" class="py-name" href="#" onclick="return doclink('link-121', 'ChannelPeer', 'link-121');">ChannelPeer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">                    <tt id="link-122" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-122', 'peers', 'link-59');">peers</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-123" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-123', 'peer', 'link-120');">peer</a></tt><tt class="py-op">)</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">                    <tt class="py-name">bytesRead</tt> <tt class="py-op">=</tt> <tt id="link-124" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-124', 'peer', 'link-120');">peer</a></tt><tt class="py-op">.</tt><tt id="link-125" class="py-name" targets="Method lacewing.bytereader.ByteReader.read()=lacewing.bytereader.ByteReader-class.html#read,Method lacewing.packetloaders.client.ChannelMaster.read()=lacewing.packetloaders.client.ChannelMaster-class.html#read,Method lacewing.packetloaders.client.Request.read()=lacewing.packetloaders.client.Request-class.html#read,Method lacewing.packetloaders.server.ChannelPeer.read()=lacewing.packetloaders.server.ChannelPeer-class.html#read,Method lacewing.packetloaders.server.Peer.read()=lacewing.packetloaders.server.Peer-class.html#read,Method lacewing.packetloaders.server.Response.read()=lacewing.packetloaders.server.Response-class.html#read"><a title="lacewing.bytereader.ByteReader.read
lacewing.packetloaders.client.ChannelMaster.read
lacewing.packetloaders.client.Request.read
lacewing.packetloaders.server.ChannelPeer.read
lacewing.packetloaders.server.Peer.read
lacewing.packetloaders.server.Response.read" class="py-name" href="#" onclick="return doclink('link-125', 'read', 'link-125');">read</a></tt><tt class="py-op">(</tt><tt id="link-126" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-126', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">                    <tt id="link-127" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-127', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-128" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-128', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-129" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-129', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">bytesRead</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-130', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-131" class="py-name"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-131', 'LEAVE_CHANNEL', 'link-11');">LEAVE_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-132', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-133" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_ID" class="py-name" href="#" onclick="return doclink('link-133', 'CHANNEL_ID', 'link-20');">CHANNEL_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-134" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-134', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">            <tt id="link-135" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-135', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-136" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-136', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-137" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-137', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-138" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-138', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-139" class="py-name"><a title="lacewing.packetloaders.common.CHANNEL_LIST" class="py-name" href="#" onclick="return doclink('link-139', 'CHANNEL_LIST', 'link-12');">CHANNEL_LIST</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-140" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-140', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-141" class="py-name"><a title="lacewing.moo.protocol.MooProtocol.channels
lacewing.moo.server.MooServerFactory.channels
lacewing.packetloaders.server.Response.channels
lacewing.protocol.BaseProtocol.channels" class="py-name" href="#" onclick="return doclink('link-141', 'channels', 'link-60');">channels</a></tt> <tt class="py-op">=</tt> <tt id="link-142" class="py-name"><a title="lacewing.moo.protocol.MooProtocol.channels
lacewing.moo.server.MooServerFactory.channels
lacewing.packetloaders.server.Response.channels
lacewing.protocol.BaseProtocol.channels" class="py-name" href="#" onclick="return doclink('link-142', 'channels', 'link-60');">channels</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">            <tt class="py-keyword">while</tt> <tt id="link-143" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-143', 'data', 'link-36');">data</a></tt><tt class="py-op">:</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                <tt class="py-name">count</tt><tt class="py-op">,</tt> <tt id="link-144" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-144', 'size', 'link-34');">size</a></tt> <tt class="py-op">=</tt> <tt id="link-145" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_LIST_DATA" class="py-name" href="#" onclick="return doclink('link-145', 'CHANNEL_LIST_DATA', 'link-23');">CHANNEL_LIST_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-146" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-146', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">                <tt id="link-147" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-147', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-148" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-148', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-149" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-149', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-150" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_LIST_DATA" class="py-name" href="#" onclick="return doclink('link-150', 'CHANNEL_LIST_DATA', 'link-23');">CHANNEL_LIST_DATA</a></tt><tt class="py-op">.</tt><tt id="link-151" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-151', 'size', 'link-34');">size</a></tt><tt class="py-op">,</tt> <tt id="link-152" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-152', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                <tt id="link-153" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-153', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-154" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-154', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-155" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-155', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-156" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_LIST_DATA" class="py-name" href="#" onclick="return doclink('link-156', 'CHANNEL_LIST_DATA', 'link-23');">CHANNEL_LIST_DATA</a></tt><tt class="py-op">.</tt><tt id="link-157" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-157', 'size', 'link-34');">size</a></tt> <tt class="py-op">+</tt> <tt id="link-158" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-158', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">                <tt id="link-159" class="py-name"><a title="lacewing.moo.protocol.MooProtocol.channels
lacewing.moo.server.MooServerFactory.channels
lacewing.packetloaders.server.Response.channels
lacewing.protocol.BaseProtocol.channels" class="py-name" href="#" onclick="return doclink('link-159', 'channels', 'link-60');">channels</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt id="link-160" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-160', 'name', 'link-31');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">count</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-161" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-161', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-162" class="py-name"><a title="lacewing.moo.packetloaders.message.Message.value
lacewing.multidict.DictItem.value
lacewing.packetloaders.server.Response.value" class="py-name" href="#" onclick="return doclink('link-162', 'value', 'link-62');">value</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-163" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-163', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">     </tt>
<a name="Response.addPeer"></a><div id="Response.addPeer-def"><a name="L90"></a><tt class="py-lineno"> 90</tt> <a class="py-toggle" href="#" id="Response.addPeer-toggle" onclick="return toggle('Response.addPeer');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Response-class.html#addPeer">addPeer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">id</tt><tt class="py-op">,</tt> <tt class="py-param">isMaster</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Response.addPeer-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Response.addPeer-expanded"><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-164" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-164', 'peers', 'link-59');">peers</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-165" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-165', 'peers', 'link-59');">peers</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt id="link-166" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-166', 'peer', 'link-120');">peer</a></tt> <tt class="py-op">=</tt> <tt id="link-167" class="py-name"><a title="lacewing.packetloaders.server.ChannelPeer" class="py-name" href="#" onclick="return doclink('link-167', 'ChannelPeer', 'link-121');">ChannelPeer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt id="link-168" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-168', 'peer', 'link-120');">peer</a></tt><tt class="py-op">.</tt><tt id="link-169" class="py-name"><a title="lacewing.client.ClientChannel.id
lacewing.client.Peer.id
lacewing.moo.client.Channel.id
lacewing.moo.client.Player.id
lacewing.moo.protocol.MooProtocol.id
lacewing.moo.server.Channel.id
lacewing.packetloaders.client.BinaryChannelMessage.id
lacewing.packetloaders.client.BinaryPeerMessage.id
lacewing.packetloaders.client.BinaryServerMessage.id
lacewing.packetloaders.client.ChannelMaster.id
lacewing.packetloaders.client.ObjectChannelMessage.id
lacewing.packetloaders.client.ObjectPeerMessage.id
lacewing.packetloaders.client.ObjectServerMessage.id
lacewing.packetloaders.client.Pong.id
lacewing.packetloaders.client.Request.id
lacewing.packetloaders.client.UDPHello.id
lacewing.packetloaders.server.BinaryChannelMessage.id
lacewing.packetloaders.server.BinaryPeerMessage.id
lacewing.packetloaders.server.BinaryServerChannelMessage.id
lacewing.packetloaders.server.BinaryServerMessage.id
lacewing.packetloaders.server.ChannelPeer.id
lacewing.packetloaders.server.ObjectChannelMessage.id
lacewing.packetloaders.server.ObjectPeerMessage.id
lacewing.packetloaders.server.ObjectServerChannelMessage.id
lacewing.packetloaders.server.ObjectServerMessage.id
lacewing.packetloaders.server.Peer.id
lacewing.packetloaders.server.Ping.id
lacewing.packetloaders.server.Response.id
lacewing.packetloaders.server.UDPWelcome.id
lacewing.protocol.BaseProtocol.id
lacewing.server.ServerChannel.id" class="py-name" href="#" onclick="return doclink('link-169', 'id', 'link-29');">id</a></tt> <tt class="py-op">=</tt> <tt id="link-170" class="py-name"><a title="lacewing.client.ClientChannel.id
lacewing.client.Peer.id
lacewing.moo.client.Channel.id
lacewing.moo.client.Player.id
lacewing.moo.protocol.MooProtocol.id
lacewing.moo.server.Channel.id
lacewing.packetloaders.client.BinaryChannelMessage.id
lacewing.packetloaders.client.BinaryPeerMessage.id
lacewing.packetloaders.client.BinaryServerMessage.id
lacewing.packetloaders.client.ChannelMaster.id
lacewing.packetloaders.client.ObjectChannelMessage.id
lacewing.packetloaders.client.ObjectPeerMessage.id
lacewing.packetloaders.client.ObjectServerMessage.id
lacewing.packetloaders.client.Pong.id
lacewing.packetloaders.client.Request.id
lacewing.packetloaders.client.UDPHello.id
lacewing.packetloaders.server.BinaryChannelMessage.id
lacewing.packetloaders.server.BinaryPeerMessage.id
lacewing.packetloaders.server.BinaryServerChannelMessage.id
lacewing.packetloaders.server.BinaryServerMessage.id
lacewing.packetloaders.server.ChannelPeer.id
lacewing.packetloaders.server.ObjectChannelMessage.id
lacewing.packetloaders.server.ObjectPeerMessage.id
lacewing.packetloaders.server.ObjectServerChannelMessage.id
lacewing.packetloaders.server.ObjectServerMessage.id
lacewing.packetloaders.server.Peer.id
lacewing.packetloaders.server.Ping.id
lacewing.packetloaders.server.Response.id
lacewing.packetloaders.server.UDPWelcome.id
lacewing.protocol.BaseProtocol.id
lacewing.server.ServerChannel.id" class="py-name" href="#" onclick="return doclink('link-170', 'id', 'link-29');">id</a></tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt id="link-171" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-171', 'peer', 'link-120');">peer</a></tt><tt class="py-op">.</tt><tt id="link-172" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-172', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt id="link-173" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-173', 'isMaster', 'link-30');">isMaster</a></tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt id="link-174" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-174', 'peer', 'link-120');">peer</a></tt><tt class="py-op">.</tt><tt id="link-175" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-175', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-176" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-176', 'name', 'link-31');">name</a></tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-177" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-177', 'peers', 'link-59');">peers</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-178" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-178', 'peer', 'link-120');">peer</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"> </tt>
<a name="Response.generate"></a><div id="Response.generate-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="Response.generate-toggle" onclick="return toggle('Response.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Response-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Response.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Response.generate-expanded"><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt id="link-179" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-179', 'data', 'link-36');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-180" class="py-name"><a title="lacewing.packetloaders.server.RESPONSE_DATA" class="py-name" href="#" onclick="return doclink('link-180', 'RESPONSE_DATA', 'link-16');">RESPONSE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-181" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-181', 'response', 'link-53');">response</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-182" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-182', 'success', 'link-54');">success</a></tt><tt class="py-op">)</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-183" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-183', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-184" class="py-name"><a title="lacewing.packetloaders.common.CONNECT" class="py-name" href="#" onclick="return doclink('link-184', 'CONNECT', 'link-8');">CONNECT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">            <tt id="link-185" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-185', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-186" class="py-name"><a title="lacewing.packetloaders.server.YOUR_ID" class="py-name" href="#" onclick="return doclink('link-186', 'YOUR_ID', 'link-21');">YOUR_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-187" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-187', 'playerId', 'link-61');">playerId</a></tt> <tt class="py-keyword">or</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">            <tt id="link-188" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-188', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-189" class="py-name"><a title="lacewing.packetloaders.server.Response.welcome" class="py-name" href="#" onclick="return doclink('link-189', 'welcome', 'link-55');">welcome</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">''</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-190" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-190', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-191" class="py-name"><a title="lacewing.packetloaders.common.SET_NAME" class="py-name" href="#" onclick="return doclink('link-191', 'SET_NAME', 'link-9');">SET_NAME</a></tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt id="link-192" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-192', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-193" class="py-name"><a title="lacewing.packetloaders.server.NAME_DATA" class="py-name" href="#" onclick="return doclink('link-193', 'NAME_DATA', 'link-17');">NAME_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-194" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-194', 'name', 'link-31');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-195" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-195', 'name', 'link-31');">name</a></tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-196" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-196', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-197" class="py-name"><a title="lacewing.packetloaders.common.JOIN_CHANNEL" class="py-name" href="#" onclick="return doclink('link-197', 'JOIN_CHANNEL', 'link-10');">JOIN_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt id="link-198" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-198', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-199" class="py-name"><a title="lacewing.packetloaders.server.JOIN_CHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-199', 'JOIN_CHANNEL_DATA', 'link-19');">JOIN_CHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">                <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-200" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-200', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-keyword">or</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-201" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-201', 'name', 'link-31');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-202" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-202', 'name', 'link-31');">name</a></tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-203" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-203', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">                <tt id="link-204" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-204', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-205" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_ID" class="py-name" href="#" onclick="return doclink('link-205', 'CHANNEL_ID', 'link-20');">CHANNEL_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-206" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-206', 'channel', 'link-58');">channel</a></tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-207" class="py-name"><a title="lacewing.packetloaders.server.Response.peers" class="py-name" href="#" onclick="return doclink('link-207', 'peers', 'link-59');">peers</a></tt> <tt class="py-keyword">or</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">                    <tt id="link-208" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-208', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt class="py-name">item</tt><tt class="py-op">.</tt><tt id="link-209" class="py-name" targets="Method lacewing.moo.packetloaders.client.ChangeName.generate()=lacewing.moo.packetloaders.client.ChangeName-class.html#generate,Method lacewing.moo.packetloaders.client.ClientMessage.generate()=lacewing.moo.packetloaders.client.ClientMessage-class.html#generate,Method lacewing.moo.packetloaders.client.JoinChannel.generate()=lacewing.moo.packetloaders.client.JoinChannel-class.html#generate,Method lacewing.moo.packetloaders.client.LeaveChannel.generate()=lacewing.moo.packetloaders.client.LeaveChannel-class.html#generate,Method lacewing.moo.packetloaders.client.PrivateMessage.generate()=lacewing.moo.packetloaders.client.PrivateMessage-class.html#generate,Method lacewing.moo.packetloaders.client.SetName.generate()=lacewing.moo.packetloaders.client.SetName-class.html#generate,Method lacewing.moo.packetloaders.client.ToChannelMessage.generate()=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.message.Message.generate()=lacewing.moo.packetloaders.message.Message-class.html#generate,Method lacewing.moo.packetloaders.server.AssignedID.generate()=lacewing.moo.packetloaders.server.AssignedID-class.html#generate,Method lacewing.moo.packetloaders.server.ChannelJoined.generate()=lacewing.moo.packetloaders.server.ChannelJoined-class.html#generate,Method lacewing.moo.packetloaders.server.FromChannelMessage.generate()=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.server.MOTD.generate()=lacewing.moo.packetloaders.server.MOTD-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerChanged.generate()=lacewing.moo.packetloaders.server.PlayerChanged-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerLeft.generate()=lacewing.moo.packetloaders.server.PlayerLeft-class.html#generate,Method lacewing.packetloaders.client.ChannelMaster.generate()=lacewing.packetloaders.client.ChannelMaster-class.html#generate,Method lacewing.packetloaders.client.Request.generate()=lacewing.packetloaders.client.Request-class.html#generate,Method lacewing.packetloaders.server.ChannelPeer.generate()=lacewing.packetloaders.server.ChannelPeer-class.html#generate,Method lacewing.packetloaders.server.Peer.generate()=lacewing.packetloaders.server.Peer-class.html#generate,Method lacewing.packetloaders.server.Response.generate()=lacewing.packetloaders.server.Response-class.html#generate"><a title="lacewing.moo.packetloaders.client.ChangeName.generate
lacewing.moo.packetloaders.client.ClientMessage.generate
lacewing.moo.packetloaders.client.JoinChannel.generate
lacewing.moo.packetloaders.client.LeaveChannel.generate
lacewing.moo.packetloaders.client.PrivateMessage.generate
lacewing.moo.packetloaders.client.SetName.generate
lacewing.moo.packetloaders.client.ToChannelMessage.generate
lacewing.moo.packetloaders.message.Message.generate
lacewing.moo.packetloaders.server.AssignedID.generate
lacewing.moo.packetloaders.server.ChannelJoined.generate
lacewing.moo.packetloaders.server.FromChannelMessage.generate
lacewing.moo.packetloaders.server.MOTD.generate
lacewing.moo.packetloaders.server.PlayerChanged.generate
lacewing.moo.packetloaders.server.PlayerLeft.generate
lacewing.packetloaders.client.ChannelMaster.generate
lacewing.packetloaders.client.Request.generate
lacewing.packetloaders.server.ChannelPeer.generate
lacewing.packetloaders.server.Peer.generate
lacewing.packetloaders.server.Response.generate" class="py-name" href="#" onclick="return doclink('link-209', 'generate', 'link-209');">generate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-210" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-210', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-211" class="py-name"><a title="lacewing.packetloaders.common.LEAVE_CHANNEL" class="py-name" href="#" onclick="return doclink('link-211', 'LEAVE_CHANNEL', 'link-11');">LEAVE_CHANNEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">            <tt id="link-212" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-212', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-213" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_ID" class="py-name" href="#" onclick="return doclink('link-213', 'CHANNEL_ID', 'link-20');">CHANNEL_ID</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-214" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-214', 'channel', 'link-58');">channel</a></tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-215" class="py-name"><a title="lacewing.packetloaders.server.Response.response" class="py-name" href="#" onclick="return doclink('link-215', 'response', 'link-53');">response</a></tt> <tt class="py-op">==</tt> <tt id="link-216" class="py-name"><a title="lacewing.packetloaders.common.CHANNEL_LIST" class="py-name" href="#" onclick="return doclink('link-216', 'CHANNEL_LIST', 'link-12');">CHANNEL_LIST</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-217" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-217', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-op">(</tt><tt id="link-218" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-218', 'name', 'link-31');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">count</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-219" class="py-name"><a title="lacewing.moo.protocol.MooProtocol.channels
lacewing.moo.server.MooServerFactory.channels
lacewing.packetloaders.server.Response.channels
lacewing.protocol.BaseProtocol.channels" class="py-name" href="#" onclick="return doclink('link-219', 'channels', 'link-60');">channels</a></tt><tt class="py-op">:</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">                <tt id="link-220" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-220', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt id="link-221" class="py-name"><a title="lacewing.packetloaders.server.CHANNEL_LIST_DATA" class="py-name" href="#" onclick="return doclink('link-221', 'CHANNEL_LIST_DATA', 'link-23');">CHANNEL_LIST_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">count</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-222" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-222', 'name', 'link-31');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt id="link-223" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-223', 'name', 'link-31');">name</a></tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-224" class="py-name"><a title="lacewing.packetloaders.server.Response.success" class="py-name" href="#" onclick="return doclink('link-224', 'success', 'link-54');">success</a></tt><tt class="py-op">:</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">            <tt id="link-225" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-225', 'data', 'link-36');">data</a></tt> <tt class="py-op">+=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-226" class="py-name"><a title="lacewing.moo.packetloaders.message.Message.value
lacewing.multidict.DictItem.value
lacewing.packetloaders.server.Response.value" class="py-name" href="#" onclick="return doclink('link-226', 'value', 'link-62');">value</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">''</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-227" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-227', 'data', 'link-36');">data</a></tt> </tt>
</div></div><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
<a name="_ServerMessage"></a><div id="_ServerMessage-def"><a name="L122"></a><tt class="py-lineno">122</tt> <a class="py-toggle" href="#" id="_ServerMessage-toggle" onclick="return toggle('_ServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerMessage-class.html">_ServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_ServerMessage-expanded"><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt id="link-228" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.subchannel=lacewing.moo.packetloaders.client.ClientMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.PrivateMessage.subchannel=lacewing.moo.packetloaders.client.PrivateMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.ToChannelMessage.subchannel=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.server.FromChannelMessage.subchannel=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#subchannel"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-228', 'subchannel', 'link-228');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_ServerMessage.read"></a><div id="_ServerMessage.read-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="_ServerMessage.read-toggle" onclick="return toggle('_ServerMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerMessage.read-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-229" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-229', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt id="link-230" class="py-name"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-230', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-231" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-231', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-232" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-232', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-233" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-233', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">     </tt>
<a name="_ServerMessage.generate"></a><div id="_ServerMessage.generate-def"><a name="L128"></a><tt class="py-lineno">128</tt> <a class="py-toggle" href="#" id="_ServerMessage.generate-toggle" onclick="return toggle('_ServerMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerMessage.generate-expanded"><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-234" class="py-name"><a title="lacewing.packetloaders.client.SUBCHANNEL_DATA
lacewing.packetloaders.server.SUBCHANNEL_DATA" class="py-name" href="#" onclick="return doclink('link-234', 'SUBCHANNEL_DATA', 'link-18');">SUBCHANNEL_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-235" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-235', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"> </tt>
<a name="_PeerMessage"></a><div id="_PeerMessage-def"><a name="L131"></a><tt class="py-lineno">131</tt> <a class="py-toggle" href="#" id="_PeerMessage-toggle" onclick="return toggle('_PeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server._PeerMessage-class.html">_PeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_PeerMessage-expanded"><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">    <tt id="link-236" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-236', 'subchannel', 'link-228');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">    <tt id="link-237" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-237', 'channel', 'link-58');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">    <tt id="link-238" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-238', 'peer', 'link-120');">peer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_PeerMessage.read"></a><div id="_PeerMessage.read-def"><a name="L135"></a><tt class="py-lineno">135</tt> <a class="py-toggle" href="#" id="_PeerMessage.read-toggle" onclick="return toggle('_PeerMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._PeerMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PeerMessage.read-expanded"><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-239" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-239', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-240" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-240', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-241" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-241', 'peer', 'link-120');">peer</a></tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt id="link-242" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-242', 'PEER_MESSAGE_DATA', 'link-25');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-243" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-243', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-244" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-244', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-245" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-245', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-246" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-246', 'PEER_MESSAGE_DATA', 'link-25');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt id="link-247" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-247', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">     </tt>
<a name="_PeerMessage.generate"></a><div id="_PeerMessage.generate-def"><a name="L140"></a><tt class="py-lineno">140</tt> <a class="py-toggle" href="#" id="_PeerMessage.generate-toggle" onclick="return toggle('_PeerMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._PeerMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_PeerMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_PeerMessage.generate-expanded"><a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-248" class="py-name"><a title="lacewing.packetloaders.client.PEER_MESSAGE_DATA
lacewing.packetloaders.server.PEER_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-248', 'PEER_MESSAGE_DATA', 'link-25');">PEER_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-249" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-249', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-250', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-251" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-251', 'peer', 'link-120');">peer</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"> </tt>
<a name="_ServerChannelMessage"></a><div id="_ServerChannelMessage-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="_ServerChannelMessage-toggle" onclick="return toggle('_ServerChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerChannelMessage-class.html">_ServerChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_ServerChannelMessage-expanded"><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">    <tt id="link-252" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-252', 'subchannel', 'link-228');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">    <tt id="link-253" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-253', 'channel', 'link-58');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="_ServerChannelMessage.read"></a><div id="_ServerChannelMessage.read-def"><a name="L147"></a><tt class="py-lineno">147</tt> <a class="py-toggle" href="#" id="_ServerChannelMessage.read-toggle" onclick="return toggle('_ServerChannelMessage.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerChannelMessage-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerChannelMessage.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerChannelMessage.read-expanded"><a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-254', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-255" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-255', 'channel', 'link-58');">channel</a></tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt id="link-256" class="py-name"><a title="lacewing.packetloaders.server.SERVER_CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-256', 'SERVER_CHANNEL_MESSAGE_DATA', 'link-26');">SERVER_CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-257" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-257', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">readMessage</tt><tt class="py-op">(</tt><tt id="link-258" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-258', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-259" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-259', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-260" class="py-name"><a title="lacewing.packetloaders.server.SERVER_CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-260', 'SERVER_CHANNEL_MESSAGE_DATA', 'link-26');">SERVER_CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt id="link-261" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-261', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">     </tt>
<a name="_ServerChannelMessage.generate"></a><div id="_ServerChannelMessage.generate-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="_ServerChannelMessage.generate-toggle" onclick="return toggle('_ServerChannelMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server._ServerChannelMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_ServerChannelMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_ServerChannelMessage.generate-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-262" class="py-name"><a title="lacewing.packetloaders.server.SERVER_CHANNEL_MESSAGE_DATA" class="py-name" href="#" onclick="return doclink('link-262', 'SERVER_CHANNEL_MESSAGE_DATA', 'link-26');">SERVER_CHANNEL_MESSAGE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-263" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-263', 'subchannel', 'link-228');">subchannel</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-264" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-264', 'channel', 'link-58');">channel</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">generateMessage</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"> </tt>
<a name="BinaryServerMessage"></a><div id="BinaryServerMessage-def"><a name="L156"></a><tt class="py-lineno">156</tt> <a class="py-toggle" href="#" id="BinaryServerMessage-toggle" onclick="return toggle('BinaryServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.BinaryServerMessage-class.html">BinaryServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryServerMessage-expanded"><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"> </tt>
<a name="BinaryChannelMessage"></a><div id="BinaryChannelMessage-def"><a name="L159"></a><tt class="py-lineno">159</tt> <a class="py-toggle" href="#" id="BinaryChannelMessage-toggle" onclick="return toggle('BinaryChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.BinaryChannelMessage-class.html">BinaryChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryChannelMessage-expanded"><a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"> </tt>
<a name="BinaryPeerMessage"></a><div id="BinaryPeerMessage-def"><a name="L162"></a><tt class="py-lineno">162</tt> <a class="py-toggle" href="#" id="BinaryPeerMessage-toggle" onclick="return toggle('BinaryPeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.BinaryPeerMessage-class.html">BinaryPeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryPeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryPeerMessage-expanded"><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"> </tt>
<a name="BinaryServerChannelMessage"></a><div id="BinaryServerChannelMessage-def"><a name="L165"></a><tt class="py-lineno">165</tt> <a class="py-toggle" href="#" id="BinaryServerChannelMessage-toggle" onclick="return toggle('BinaryServerChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.BinaryServerChannelMessage-class.html">BinaryServerChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_BinaryMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerChannelMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BinaryServerChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BinaryServerChannelMessage-expanded"><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"> </tt>
<a name="ObjectServerMessage"></a><div id="ObjectServerMessage-def"><a name="L168"></a><tt class="py-lineno">168</tt> <a class="py-toggle" href="#" id="ObjectServerMessage-toggle" onclick="return toggle('ObjectServerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ObjectServerMessage-class.html">ObjectServerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectServerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectServerMessage-expanded"><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"> </tt>
<a name="ObjectChannelMessage"></a><div id="ObjectChannelMessage-def"><a name="L171"></a><tt class="py-lineno">171</tt> <a class="py-toggle" href="#" id="ObjectChannelMessage-toggle" onclick="return toggle('ObjectChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ObjectChannelMessage-class.html">ObjectChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectChannelMessage-expanded"><a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"> </tt>
<a name="ObjectPeerMessage"></a><div id="ObjectPeerMessage-def"><a name="L174"></a><tt class="py-lineno">174</tt> <a class="py-toggle" href="#" id="ObjectPeerMessage-toggle" onclick="return toggle('ObjectPeerMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ObjectPeerMessage-class.html">ObjectPeerMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_PeerMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectPeerMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectPeerMessage-expanded"><a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"> </tt>
<a name="ObjectServerChannelMessage"></a><div id="ObjectServerChannelMessage-def"><a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="ObjectServerChannelMessage-toggle" onclick="return toggle('ObjectServerChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.ObjectServerChannelMessage-class.html">ObjectServerChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_ObjectMessageMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ServerChannelMessage</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ObjectServerChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ObjectServerChannelMessage-expanded"><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"> </tt>
<a name="Peer"></a><div id="Peer-def"><a name="L180"></a><tt class="py-lineno">180</tt> <a class="py-toggle" href="#" id="Peer-toggle" onclick="return toggle('Peer');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Peer-class.html">Peer</a><tt class="py-op">(</tt><tt class="py-base-class">_BaseLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Peer-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Peer-expanded"><a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">    <tt id="link-265" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-265', 'channel', 'link-58');">channel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">    <tt id="link-266" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-266', 'peer', 'link-120');">peer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">    <tt id="link-267" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-267', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">    <tt id="link-268" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-268', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">     </tt>
<a name="Peer.read"></a><div id="Peer.read-def"><a name="L186"></a><tt class="py-lineno">186</tt> <a class="py-toggle" href="#" id="Peer.read-toggle" onclick="return toggle('Peer.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Peer-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Peer.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Peer.read-expanded"><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-269" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-269', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt id="link-270" class="py-name"><a title="lacewing.packetloaders.server.PEER_LEAVE_DATA" class="py-name" href="#" onclick="return doclink('link-270', 'PEER_LEAVE_DATA', 'link-28');">PEER_LEAVE_DATA</a></tt><tt class="py-op">.</tt><tt id="link-271" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-271', 'size', 'link-34');">size</a></tt><tt class="py-op">:</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-272" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-272', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-273" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-273', 'peer', 'link-120');">peer</a></tt> <tt class="py-op">=</tt> <tt id="link-274" class="py-name"><a title="lacewing.packetloaders.server.PEER_LEAVE_DATA" class="py-name" href="#" onclick="return doclink('link-274', 'PEER_LEAVE_DATA', 'link-28');">PEER_LEAVE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt id="link-275" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-275', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-276" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-276', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-277" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-277', 'peer', 'link-120');">peer</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-278" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-278', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-op">=</tt> <tt id="link-279" class="py-name"><a title="lacewing.packetloaders.server.NEW_PEER_DATA" class="py-name" href="#" onclick="return doclink('link-279', 'NEW_PEER_DATA', 'link-27');">NEW_PEER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">unpack_from</tt><tt class="py-op">(</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">                <tt id="link-280" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-280', 'data', 'link-36');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-281" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-281', 'name', 'link-31');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-282" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-282', 'buffer', 'link-40');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-283" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-283', 'data', 'link-36');">data</a></tt><tt class="py-op">,</tt> <tt id="link-284" class="py-name"><a title="lacewing.packetloaders.server.NEW_PEER_DATA" class="py-name" href="#" onclick="return doclink('link-284', 'NEW_PEER_DATA', 'link-27');">NEW_PEER_DATA</a></tt><tt class="py-op">.</tt><tt id="link-285" class="py-name"><a title="lacewing.bytereader.ByteReader.size" class="py-name" href="#" onclick="return doclink('link-285', 'size', 'link-34');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">     </tt>
<a name="Peer.generate"></a><div id="Peer.generate-def"><a name="L194"></a><tt class="py-lineno">194</tt> <a class="py-toggle" href="#" id="Peer.generate-toggle" onclick="return toggle('Peer.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Peer-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Peer.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Peer.generate-expanded"><a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-286" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-286', 'isMaster', 'link-30');">isMaster</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-287', 'name', 'link-31');">name</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-288" class="py-name"><a title="lacewing.packetloaders.server.PEER_LEAVE_DATA" class="py-name" href="#" onclick="return doclink('link-288', 'PEER_LEAVE_DATA', 'link-28');">PEER_LEAVE_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-289" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-289', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-290" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-290', 'peer', 'link-120');">peer</a></tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-291" class="py-name"><a title="lacewing.packetloaders.server.NEW_PEER_DATA" class="py-name" href="#" onclick="return doclink('link-291', 'NEW_PEER_DATA', 'link-27');">NEW_PEER_DATA</a></tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-292" class="py-name"><a title="lacewing.moo.client.Player.channel
lacewing.packetloaders.client.ChannelMaster.channel
lacewing.packetloaders.client.Request.channel
lacewing.packetloaders.server.Peer.channel
lacewing.packetloaders.server.Response.channel" class="py-name" href="#" onclick="return doclink('link-292', 'channel', 'link-58');">channel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-293" class="py-name"><a title="lacewing.packetloaders.client.ChannelMaster.peer
lacewing.packetloaders.server.Peer.peer" class="py-name" href="#" onclick="return doclink('link-293', 'peer', 'link-120');">peer</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-294" class="py-name"><a title="lacewing.moo.client.Player.isMaster
lacewing.packetloaders.server.ChannelPeer.isMaster
lacewing.packetloaders.server.Peer.isMaster
lacewing.packetloaders.server.Response.isMaster" class="py-name" href="#" onclick="return doclink('link-294', 'isMaster', 'link-30');">isMaster</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-295" class="py-name"><a title="lacewing.client.ClientChannel.name
lacewing.client.Peer.name
lacewing.moo.client.Channel.name
lacewing.moo.client.Player.name
lacewing.moo.protocol.MooProtocol.name
lacewing.moo.server.Channel.name
lacewing.packetloaders.client.Request.name
lacewing.packetloaders.server.ChannelPeer.name
lacewing.packetloaders.server.Peer.name
lacewing.packetloaders.server.Response.name
lacewing.protocol.BaseProtocol.name
lacewing.server.ServerChannel.name" class="py-name" href="#" onclick="return doclink('link-295', 'name', 'link-31');">name</a></tt> </tt>
</div></div><a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"> </tt>
<a name="UDPWelcome"></a><div id="UDPWelcome-def"><a name="L201"></a><tt class="py-lineno">201</tt> <a class="py-toggle" href="#" id="UDPWelcome-toggle" onclick="return toggle('UDPWelcome');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.UDPWelcome-class.html">UDPWelcome</a><tt class="py-op">(</tt><tt class="py-base-class">_EmptyLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="UDPWelcome-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="UDPWelcome-expanded"><a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line"> </tt>
<a name="Ping"></a><div id="Ping-def"><a name="L204"></a><tt class="py-lineno">204</tt> <a class="py-toggle" href="#" id="Ping-toggle" onclick="return toggle('Ping');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.packetloaders.server.Ping-class.html">Ping</a><tt class="py-op">(</tt><tt class="py-base-class">_EmptyLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Ping-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Ping-expanded"><a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Dec 22 06:20:00 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
